package com.example.d10_homework.homework04;

public class Test {
    public static void main(String[] args) {
        // 1.创建线程任务对象
        Runnable target = new EntranceTask(100);

        // 2.创建线程对象
        Thread t1 = new Thread(target, "前门");
        Thread t2 = new Thread(target, "后门");

        // 3.启动线程
        t1.start();
        t2.start();
    }
}
